import request from "../utils/request";


export function findMsgList(data) {
    return request({
        url: '/api/msg/findMsgList',
        method: 'POST',
        data
    })
}

export function findTop5(userId) {
    return request({
        url: '/api/msg/findTop5/'+ userId,
        method: 'GET'
    })
}

export function getMsgDetail(id) {
    return request({
        url: '/api/msg/detail/' + id,
        method: 'GET'
    })
}
export function updateStatus(id, adminId) {
    return request({
        url: '/api/msg/updateStatus/' + id + '/' + adminId,
        method: 'GET'
    })
}